﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FDSimpleModelGenerator.Models.ClassTemplates
{
    public class ClassTemplateModel
    {
        public int Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 文件名
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        /// 描述信息
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 分类
        /// </summary>
        public int Category { get; set; }

        /// <summary>
        /// 分类
        /// </summary>
        public string CategoryName { get; set; }

        /// <summary>
        /// 语言数据类型：0:C# 1:java 2:jdbc
        /// </summary>
        public int DataType { get; set; }

        /// <summary>
        /// 类型描述
        /// </summary>
        public string DataTypeText
        {
            get
            {
                switch (DataType)
                {
                    case 1: return "Java";
                    case 2: return "Jdbc";
                    default: return "C#";
                }
            }
        }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
